﻿@model GameSite.Models.LoginModel
<section id="loginForm">
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
    @Html.AntiForgeryToken()
    <h2>登陆</h2>
    <div  class="control-group">
        @Html.ValidationSummary(true)
        </div>
    <div class="login-form">
        <div class="control-group">
            @Html.TextBoxFor(m => m.UserName, new { placeholder = "Enter your name", @class = "login-field" })
            <label class="login-field-icon fui-man-16" for="login-name"></label>              
            @Html.ValidationMessageFor(m => m.UserName)
        </div>

        <div class="control-group">
            @Html.PasswordFor(m => m.Password, new { placeholder = "Password", @class = "login-field" })
            <label class="login-field-icon fui-lock-16" for="login-pass"></label>
            @Html.ValidationMessageFor(m => m.Password)
        </div>
            <input type="submit" class="btn btn-primary btn-large btn-block" value="登 陆" />
            <a href="@Url.Action("Register", "Account")" class="login-link">注册</a>
    </div>
}
</section>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
